Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Fullpath not Filename (I think)

Firstly, you are using lots of variants that should be Strings.

"Dim filesys,FullPath,OUName,FileName,Path" creates 5 variants. These all need to be "Dim"ed separately.

Secondly, you should use the full path, not just the filename in this line:
Set Object = rtitem.EmbedObject(EMBED_ATTACHMENT,"",FileName,OUName)

So bring back the lines you commented out (and you can replace them with one line in fact) and correct the EmbedObject code:

FullPath = doc.Getitemvalue("FullPath")(0)
Set Object = rtitem.EmbedObject(EMBED_ATTACHMENT,"",FullPath,OUName)

Finally, if I were re-writing your script entirely, I would use more doc commands and fewer uidoc commands. It gives you greater control over data types, and reduces confusion, but for now I presume you just want to get your code working !

Hope this helps,
Phil


Feedback response number WEBB94WDQA created by ~Justin Chugeromanli on 02/14/2013

Error in Code (~Howard Nimnuko... 13.Feb.13)
. . I think the field Fullpath is not a... (~Denise Lopnipl... 13.Feb.13)
. . . . Error in Code (~Howard Nimnuko... 14.Feb.13)
. . . . . . where is this code running?? (~Denise Lopnipl... 14.Feb.13)
. . . . . . . . Reply (~Howard Nimnuko... 14.Feb.13)
. . Try declaring rtitem as NotesRichTe... (~August Cispone... 13.Feb.13)
. . Fullpath not Filename (I think) (~Justin Chugero... 14.Feb.13)
. . . . Still, Problem exists (~Howard Nimnuko... 14.Feb.13)
. . . . . . code (~Denise Lopnipl... 14.Feb.13)
. . . . . . . . Thank You All...It is working.. (~Howard Nimnuko... 14.Feb.13)
. . . . . . . . . . You may want to clean up your code ... (~Dan Kikiterobu... 14.Feb.13)
. . . . . . . . . . . . Thank You Karl......... (~Howard Nimnuko... 15.Feb.13)
. . . . . . . . . . . . . . I am curious... (~Dan Kikiterobu... 15.Feb.13)
. . . . . . . . . . . . . . . . No (~Howard Nimnuko... 27.Mar.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS